<template>
  <div class="about">
    <h1>This is an about page</h1>
    <button v-permission="['admin', 'editor']">admin</button>
    <button v-permission="['admin']">editor</button>
    <button @click="out">out</button>
  </div>
</template>


<script>
export default {
  methods: {
    out() {
      this.$store
        .dispatch("user/resetToken")
        .then(() => {
          this.$router.push({
            path: "/login",
          });
        })
        .catch((error) => alert(error));
    },
  },
};
</script>
